package pe.gob.onpe.facade.local;

import java.util.List;
import javax.ejb.Local;

import pe.gob.onpe.ejb.VistaCedulaVotacion;


/**
 * Local interface for VistaCedulaVotacionFacade.
 * 
 * @author MyEclipse Persistence Tools
 */
@Local
public interface VistaCedulaVotacionFacadeLocal {
	/**
	 * Perform an initial save of a previously unsaved VistaCedulaVotacion
	 * entity. All subsequent persist actions of this entity should use the
	 * #update() method.
	 * 
	 * @param entity
	 *            VistaCedulaVotacion entity to persist
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void save(VistaCedulaVotacion entity);

	/**
	 * Delete a persistent VistaCedulaVotacion entity.
	 * 
	 * @param entity
	 *            VistaCedulaVotacion entity to delete
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void delete(VistaCedulaVotacion entity);

	/**
	 * Persist a previously saved VistaCedulaVotacion entity and return it or a
	 * copy of it to the sender. A copy of the VistaCedulaVotacion entity
	 * parameter is returned when the JPA persistence mechanism has not
	 * previously been tracking the updated entity.
	 * 
	 * @param entity
	 *            VistaCedulaVotacion entity to update
	 * @returns VistaCedulaVotacion the persisted VistaCedulaVotacion entity
	 *          instance, may not be the same
	 * @throws RuntimeException
	 *             if the operation fails
	 */
	public VistaCedulaVotacion update(VistaCedulaVotacion entity);

	public VistaCedulaVotacion findById(Long id);

	/**
	 * Find all VistaCedulaVotacion entities with a specific property value.
	 * 
	 * @param propertyName
	 *            the name of the VistaCedulaVotacion property to query
	 * @param value
	 *            the property value to match
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<VistaCedulaVotacion> found by query
	 */
	public List<VistaCedulaVotacion> findByProperty(String propertyName,
			Object value, int... rowStartIdxAndCount);

	public List<VistaCedulaVotacion> findByProcesoElectoralId(
			Object procesoElectoralId, int... rowStartIdxAndCount);

	public List<VistaCedulaVotacion> findByListacandidatospostulanteId(
			Object listacandidatospostulanteId, int... rowStartIdxAndCount);

	public List<VistaCedulaVotacion> findByNumeroordenlistacandidato(
			Object numeroordenlistacandidato, int... rowStartIdxAndCount);

	public List<VistaCedulaVotacion> findByNombre(Object nombre,
			int... rowStartIdxAndCount);

	public List<VistaCedulaVotacion> findByRutasimboloasociado(
			Object rutasimboloasociado, int... rowStartIdxAndCount);

	public List<VistaCedulaVotacion> findByNumerolistacandidato(
			Object numerolistacandidato, int... rowStartIdxAndCount);

	public List<VistaCedulaVotacion> findByListacandidatospostulanteId1(
			Object listacandidatospostulanteId1, int... rowStartIdxAndCount);

	public List<VistaCedulaVotacion> findByListacandidatospostulanteId2(
			Object listacandidatospostulanteId2, int... rowStartIdxAndCount);

	public List<VistaCedulaVotacion> findByListacandidatospostulanteId3(
			Object listacandidatospostulanteId3, int... rowStartIdxAndCount);

	/**
	 * Find all VistaCedulaVotacion entities.
	 * 
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<VistaCedulaVotacion> all VistaCedulaVotacion entities
	 */
	public List<VistaCedulaVotacion> findAll(int... rowStartIdxAndCount);
}